package com.epoch.server.kernel.serve;

import java.util.HashMap;

/**
 * 存放所有与客户端的连接
 * 向hashmap中加入线程
 */
public class ClientConnManager {
    public static HashMap<String, GroupChatConnThread> hashMap = new HashMap<>();
    public static void addClientThread(String name, GroupChatConnThread thread){
        hashMap.put(name, thread);
    }

    public static GroupChatConnThread getClientThread(String name){
        return hashMap.get(name);
    }

    public static void removeClientThread(String name) {
        hashMap.remove(name);
    }
    
}
